﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MongoDB.Bson;

namespace MongoScienceDAL.Core
{
    public static class ObjectIdExtensionMethods
    {
        public static string ToWebString(this ObjectId id)
        {
            return id.ToString();
        }

        public static ObjectId ToObjectId(this string id)
        {
            return ObjectId.Parse(id);
        }
    }
}
